home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / size / size.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-07-27  |  1.4 KB  |  56 lines

  1. /*
  2.  * size.h --
  3.  *
  4.  *    Declarations for the size program. To port this program to a new
  5.  *    machine you have to define HOST_FMT to be the format 
  6.  *    of the new host. Look at fmt.h for supported host formats.
  7.  *
  8.  * Copyright 1989 Regents of the University of California
  9.  * Permission to use, copy, modify, and distribute this
  10.  * software and its documentation for any purpose and without
  11.  * fee is hereby granted, provided that the above copyright
  12.  * notice appear in all copies.  The University of California
  13.  * makes no representations about the suitability of this
  14.  * software for any purpose.  It is provided "as is" without
  15.  * express or implied warranty.
  16.  *
  17.  * $Header: /a/newcmds/size/RCS/size.h,v 1.3 89/07/26 23:45:34 rab Exp $ SPRITE (Berkeley)
  18.  */
  19.  
  20. #ifndef _SIZE
  21. #define _SIZE
  22.  
  23. #include <sprite.h>
  24. #include <stdio.h>
  25. #include <stdlib.h>
  26. #include <fmt.h>
  27.  
  28.  
  29. #define HEADERSIZE    100
  30.  
  31. /*
  32.  * A rather awkward way of determining the host machine type. There should
  33.  * be one entry for each machine this program runs on.
  34.  */
  35. #if (defined(sun2) || defined(sun3))
  36. #define HOST_FMT FMT_68K_FORMAT
  37. #elif defined(spur)
  38. #define HOST_FMT FMT_SPUR_FORMAT
  39. #elif defined(ds3100)
  40. #define HOST_FMT FMT_MIPS_FORMAT
  41. #else
  42. #define HOST_FMT FMT_68K_FORMAT
  43. #endif
  44.  
  45. extern int hostFmt;
  46.  
  47. /*
  48.  * Routines to print out size of object file.
  49.  */
  50. extern ReturnStatus    Print68k();
  51. extern ReturnStatus    PrintSpur();
  52. extern ReturnStatus     PrintMips();
  53.  
  54. #endif /* _SIZE */
  55.  
  56.